package com.cai.activiti_demo1.delegate.signalBoundary;

import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

import java.time.LocalDate;

/**
 * 自定义委托类
 */
@Slf4j
public class MySignalFirstDelegate implements JavaDelegate {
    /**
     * 回调方法
     * @param execution
     */
    @Override
    public void execute(DelegateExecution execution) {
        log.debug("服务任务1执行了..."+ LocalDate.now());
    }
}
